<?php

namespace app\admin\model\system;

use think\Model;

/**
 * Substation
 */
class Substation extends Model {
    // 表名
    protected $name = 'system_substation';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function admin(){
        return $this->hasOne('app\\admin\\model\\Admin', 'system_substation_id', 'id');
    }

    public function rules(){
        return $this->hasOne('app\\admin\\model\\AdminAccess', 'system_substation_id', 'id');
    }


}